package com.ants.modules.articleFollow.service.impl;

import com.ants.modules.articleFavorites.entity.ArticleFavorites;
import com.ants.modules.articleFavorites.mapper.ArticleFavoritesMapper;
import com.ants.modules.articleFavorites.service.ArticleFavoritesService;
import com.ants.modules.articleFollow.entity.ArticleFollow;
import com.ants.modules.articleFollow.mapper.ArticleFollowMapper;
import com.ants.modules.articleFollow.service.ArticleFollowService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * TODO
 * Author Chen
 * Date   2021/9/7 18:44
 */
@Service
public class ArticleFollowServiceImpl extends ServiceImpl<ArticleFollowMapper, ArticleFollow> implements ArticleFollowService {

    @Autowired
    ArticleFollowMapper followMapper;

    @Override
    public List<Map<String, Object>> myFollows(String username, Integer offset, int pageSize) {
        return followMapper.myFollows(username, offset, pageSize);
    }

    @Override
    public List<Map<String, Object>> myFans(String username, Integer offset, int pageSize) {
        return followMapper.myFans(username, offset, pageSize);
    }
}
